/*
 * RenderManager class allows you to split render calls into threads
 */

#ifndef RENDERMANAGER_H
#define RENDERMANAGER_H

#include <vector>

#include <mesh/mesh.h>
#include <app/modules/threadControl.h>

#include <render/output/OGLRender.h>

class RenderManager {
public:
    RenderManager ( OGLRender* );
    
    void addToQueue ( Mesh* );
    void addQueue ( std::vector < Mesh* > );
    void startRenderObjects ();
    
private:
    std::vector <Mesh> queue;
    threadControl threads;
    
    OGLRender* GLRender;
};

#endif
